<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class AddToCompanySettingsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('company_settings', function (Blueprint $table) {
            $table->string('number')->nullable(true)->comment('保单号');
            $table->string('insured')->nullable(true)->comment('被保人');
            $table->string('policy_holder')->nullable(true)->comment('投保人');
            $table->unsignedBigInteger('type')->nullable(true)->comment('1、常规2、交强险和商业险交替显示');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('company_settings', function (Blueprint $table) {
            //
        });
    }
}
